import {
	createRouter,
	createWebHistory
} from 'vue-router'

// 导入页面组件
import BottomTabs from '../pages/BottomTabs.vue'
import MainScreen from '../pages/mainScreen/MainScreen.vue'
import ProfileView from '../pages/me/ProfileView.vue'
import MessageBoard from '../pages/message/MessageBoard.vue'
import UpLoadView from '../pages/upload/UpLoadView.vue'
import PhotoDetail from '../components/PhotoDetail.vue'

// 定义路由
const routes = [{
		path: '/',
		name: 'BottomTabs',
		component: BottomTabs,
		// children: [{
		// 		path: 'home',
		// 		name: 'Home',
		// 		component: MainScreen
		// 	},
		// 	{
		// 		path: 'profile',
		// 		name: 'Profile',
		// 		component: ProfileView
		// 	},
		// 	{
		// 		path: 'messages',
		// 		name: 'Messages',
		// 		component: MessageBoard
		// 	},
		// 	{
		// 		path: 'upload',
		// 		name: 'Upload',
		// 		component: UpLoadView
		// 	},
		// ]

	},
	// {
	// 	path: '/photo/:id',
	// 	name: 'PhotoDetail',
	// 	component: PhotoDetail
	// },
]

// 创建路由实例
const router = createRouter({
	history: createWebHistory(),
	routes
})

export default router